
import request from '@/utils/request';

// 查询列表
export async function queryUserGrade(params) {
  return request('/s/userlevel/queryPageList', {
    method: 'POST',
    data: params,
  });
}
// 新增
export async function addUserGrade(params) {
  return request('/s/userlevel/add', {
    method: 'POST',
    data: params,
  });
}

// 删除
export async function removeUserGrade(params) {
  return request('/s/userlevel/delete', {
    method: 'POST',
    data: params,
  });
}

// 修改
export async function updateUserGrade(params) {
  return request('/s/userlevel/update', {
    method: 'POST',
    data: params,
  });
}

// 分级类型
export async function levelTypeList(params) {
  return request('/s/userlevel/queryLevelTypeList', {
    method: 'POST',
    data: params,
  });
}


// 分级类型下的等级
export async function levelTypeValue(params) {
  return request('/s/userlevel/queryLevelTypeValueList', {
    method: 'POST',
    data: params,
  });
}

// 查询树形组织
export async function queryTreeOrgList(params) {
  return request('/s/org/queryTree', {
    method: 'POST',
    data: params,
  });
}

// 查询组织列表
export async function queryOrgList(params) {
  // /s/userlevel/queryUserByIncludeLevel
  return request('/s/user/queryPageList', {
    method: 'POST',
    data: params,
  });
}

// 绑定用户
export async function addUserRole(params) {
  return request('/s/userlevel/saveBindUserList', {
    method: 'POST',
    data: params,
  });
}

// 人员设置的所有人员
export async function queryListForLevelScore(params) {
  return request('/s/userlevel/queryListForLevelScore', {
    method: 'POST',
    data: params,
  });
}
